﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MedicalAssistant.core.dao;
using MedicalAssistant.core.dao.xml;

namespace MedicalAssistant.core.dao.xml
{
    class XMLDAOFactory : DAOFactory
    {
        private static XMLDAOFactory dao = null;
        private static string path = ".";

        private XMLDAOFactory()
        {
            
        }

        public static XMLDAOFactory GetInstance()
        {
            if (dao == null)
            {
                dao = new XMLDAOFactory();
            }
            return dao;
        }

        public PacienteDAO GetPacienteDao()
        {
            return XMLPacienteDAO.GetInstance();
        }
    }
}